<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
	$(document).ready(function () {
/*  		$.ajax({
			type:"get",
			url:"Relogin",
			success:function (data) {
				window.location="login.jsp"
			}
		}) ;*/
		$.ajax({
			type:"get",
			url:"GetGoods",
			success:function (data) {
				var obj=$.parseJSON(data);
				var s="<table>";
				$.each(obj, function(name,value) {
					s=s+"<tr>";
					$.each(value, function(key,i) {
						$.each(i, function(k,v) {
							s=s+"<td>"+v+"</td>"
						});
						
					});
					s=s+"</tr>"										
				});
				$("#product").append(s+"</table>");
			}
		});
	});
</script>
</head>
<body>
	<div id="product">
		
	</div>
</body>
</html>